package com.kefu.robot.model;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotEmpty;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.kefu.chat.model.ChatFaq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName(value="robot_doc_node")
@ApiModel(description = "多轮问题节点")
public class RobotDocNode implements Serializable {
    /**
     * 节点id
     */
    @TableId(value="node_id")
    @NotEmpty
    @ApiModelProperty(value = "主键")
    private String nodeId;

    /**
     * 词条id
     */
    @TableField(value = "doc_id")
    @ApiModelProperty(value = "词条id")
    private String docId;

    /**
     * 节点类型
     */
    @TableField(value = "node_type")
    @ApiModelProperty(value = "节点类型",notes = "1 文字列表，2内容展示，3页面嵌入,4常见问题,5接口调用")
    private Integer nodeType;

    /**
     * 节点名称
     */
    @TableField(value = "node_name")
    @ApiModelProperty(value = "节点名称")
    private String nodeName;

    /**
     * 常见问题
     */
    @TableField(value = "faq_id")
    @ApiModelProperty(value = "常见问题")
    private String faqId;

    /**
     * 节点内容
     */
    @TableField(value = "node_content")
    @ApiModelProperty(value = "节点内容")
    private String nodeContent;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    /**
     * 首节点
     */
    @TableField(value = "is_first")
    @ApiModelProperty(value = "首节点：0否，1是")
    private Integer isFirst;
    
    @TableField(value="bind_name")
    @ApiModelProperty(value = "绑定名称")
    private String bindName;
    /**
     * 节点按钮
     */
    @TableField(exist=false)
    private ChatFaq chatFaq;

    /**
     * 节点按钮
     */
    @TableField(exist=false)
    private List<RobotDocNodeItem> itemList;
    private static final long serialVersionUID = 1L;
}